package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.admin.mapper.AuditLogsMapper;
import com.indexingsystem.boss.entity.AuditLogs;
import com.indexingsystem.system.service.IAuditLogsService;

@Service
public class AuditLogsServiceImpl implements IAuditLogsService {

	@Resource
	private AuditLogsMapper auditLogsMapper;

	@Override
	public int deleteByPrimaryKey(String productLogId) {
		return auditLogsMapper.deleteByPrimaryKey(productLogId);
	}
	
	/**
	 * 批量删除审核日志.
	 * 
	 * @param list
	 * @return
	 */
	@Override
	public  int deleteBatchAuditLogsByResId(List<String> list){
		return auditLogsMapper.deleteBatchAuditLogsByResId(list);
	}

	@Override
	public int insert(AuditLogs record) {
		return auditLogsMapper.insert(record);
	}

	@Override
	public int insertSelective(AuditLogs record) {
		return auditLogsMapper.insertSelective(record);
	}

	@Override
	public AuditLogs selectByPrimaryKey(String productLogId) {
		return auditLogsMapper.selectByPrimaryKey(productLogId);
	}

	@Override
	public List<AuditLogs> getAuditLogsListByResId(String auditTypeId) {
		return auditLogsMapper.getAuditLogsListByResId(auditTypeId);
	}

	@Override
	public int batchAddAuditLogs(List<AuditLogs> list) {
		return auditLogsMapper.batchAddAuditLogs(list);
	}

	@Override
	public int updateByPrimaryKeySelective(AuditLogs record) {
		return auditLogsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(AuditLogs record) {
		return auditLogsMapper.updateByPrimaryKey(record);
	}

	@Override
	public AuditLogs selectAuditTypeId(String productLogId) {
		return auditLogsMapper.selectAuditTypeId(productLogId);
	}
}